package com.whfc.ms.api.energy.service;

import com.whfc.common.exception.BizException;
import com.whfc.common.result.PageData;
import com.whfc.env.entity.EnergyDevice;

import java.util.List;

public interface MsEnergyDeviceService {

    /**
     * 获取能耗设备列表
     *
     * @param deptId
     * @return
     * @throws BizException
     */
    PageData<EnergyDevice> listPage(Integer deptId, Integer pageNum, Integer pageSize, String name, Integer type) throws BizException;


    List<EnergyDevice> list(Integer deptId,String name,Integer type) throws BizException;
    /**
     * 添加能耗设备
     *
     * @param param
     * @throws BizException
     */
    void add(EnergyDevice param) throws BizException;


    /**
     * 修改能耗设备
     *
     * @param param
     * @throws BizException
     */
    void edit(EnergyDevice param) throws BizException;

    /**
     * 删除能耗设备
     *
     * @param
     * @throws BizException
     */
    void del(Integer id) throws BizException;

}
